]> dgit.raspbian.org Git - gnome-shell.git/commit
gdm/util: Only initialize fingerprint and smart card managers if needed
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Tue, 1 Mar 2022 10:57:20 +0000 (11:57 +0100)
committerMarco Trevisan (Treviño) <mail@3v1n0.net>
Wed, 28 Feb 2024 21:10:43 +0000 (22:10 +0100)
commitea3731de3828827bb632ab7eba64cf4d0e85abc9
treec24b7937a2c754ea8b0f474b85bef14cac4526eb
parent9f3a9f8f2c619e9b9f49e818434dc6569eea66d9
gdm/util: Only initialize fingerprint and smart card managers if needed

There's no point to initialize the fprint proxy and the smartcard
manager if they are disabled in authentication settings, so just avoid
initializing them, but at the same time this implies tracking of user
changes and so:
 - If a new service has been enabled, we initialize it
 - If a service has been disabled we destroy it and reset the
   authentication if such service was currently active

In both cases we do update the default service.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2267>
js/gdm/util.js